import request from '/@/service'
import type { ILOGIN_DATA, ILOGIN_PARAMS } from './types/login'

export const login = (data: ILOGIN_PARAMS) => {
  return request<any, ILOGIN_DATA[]>({
    url: '/api/auth/login',
    method: 'post',
    data,
  })
}
